package Linked;

public class Text {
    public static void main(String[] args) {
        List list = new List();
/*        list.addFirst(1);
        list.addFirst(1);
        list.addFirst(1);
        list.addFirst(3);
        list.addFirst(5);*/
        list.addLast(1);
        list.addLast(1);
        list.addLast(3);
        list.addLast(9);
        list.addLast(9);
        list.addLast(10);
        for (Integer integer : list) {
            System.out.println(integer);
        }
        System.out.println("=================");

        List list1 = list.removeRecursion(list);
        for (Integer integer : list1) {
            System.out.println(integer);
        }
/*        List list1 = list.removeDoublePointer(list);
        for (Integer integer : list1) {
            System.out.println(integer);
        }*/

/*
        List list1 = new List();
        list1.addLast(2);
        list1.addLast(4);

        List l = list.combineList(list1);
        for (Integer integer : l) {
            System.out.print(integer + " ");
        }
*/

/*

        List list2 = new List();
        list2.addLast(100);
        List newList =  List.combinedList(list1,list);
        for (Integer integer : newList) {
            System.out.print(integer + " ");
        }*/

/*        List list1 = list.removeRepeat(list);
        for (Integer integer : list1) {
            System.out.println(integer);
        }*/
/*        List list1 = list.removePointer(list);
        for (Integer integer : list1) {
            System.out.println(integer);
        }*/
    }
}
